package gae.testjig.dto;

import java.util.LinkedList;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Organization {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key organizationKey;

	@Persistent private String name;
	@Persistent private LinkedList<ContactGroup> contactGroups;

	public Key getOrganizationKey() {
		return organizationKey;
	}
	public void setOrganizationKey(Key organizationKey) {
		this.organizationKey = organizationKey;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setContactGroups(LinkedList<ContactGroup> contactGroups) {
		this.contactGroups = contactGroups;
	}
	public LinkedList<ContactGroup> getContactGroups() {
		return contactGroups;
	}

}
